.class Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;
.super Ljava/lang/Object;
.source "NiceAppCommentActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->doComment(Ljava/lang/String;Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

.field final synthetic val$comment:Ljava/lang/String;

.field final synthetic val$shareToWeibo:Z


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppCommentActivity;Ljava/lang/String;Z)V
    .registers 4
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

    .prologue
    .line 163
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->val$comment:Ljava/lang/String;

    iput-boolean p3, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->val$shareToWeibo:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 5
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    const/4 v2, 0x0

    .line 167
    const v0, 0x7f0c003e

    const/16 v1, 0x11

    invoke-static {v0, v2, v1}, Lcom/brixd/niceapp/util/ToastUtils;->show(III)V

    .line 168
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

    # setter for: Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->mIsRequesting:Z
    invoke-static {v0, v2}, Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->access$202(Lcom/brixd/niceapp/activity/NiceAppCommentActivity;Z)Z

    .line 169
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 163
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    const/4 v3, 0x0

    .line 173
    const v1, 0x7f0c0044

    const/16 v2, 0x11

    invoke-static {v1, v3, v2}, Lcom/brixd/niceapp/util/ToastUtils;->show(III)V

    .line 174
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

    # setter for: Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->mIsRequesting:Z
    invoke-static {v1, v3}, Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->access$202(Lcom/brixd/niceapp/activity/NiceAppCommentActivity;Z)Z

    .line 176
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 177
    .local v0, "data":Landroid/content/Intent;
    const-string v1, "Comment"

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->val$comment:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 178
    const-string v1, "ShareToWeibo"

    iget-boolean v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->val$shareToWeibo:Z

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 179
    const-string v1, "CommentCount"

    const-string v2, "count"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 180
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

    const/4 v2, -0x1

    invoke-virtual {v1, v2, v0}, Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->setResult(ILandroid/content/Intent;)V

    .line 181
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentActivity$4;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/NiceAppCommentActivity;->finish()V

    .line 182
    return-void
.end method
